import request from '@/utils/request'

// 查询要审核的用户的相关信息
export function listUser(query) {
  return request({
    url: '/campus/audit/user',
    method: 'get',
    params: query
  })
}

// 根据用户ID 查询要审核的用户的相关信息
export function getAuditUser(userId) {
  return request({
    url: '/campus/audit/user/' + userId,
    method: 'get'
  })
}

// 根据userId审核通过账号
export function passAuditUser(userId) {
  return request({
    url: '/campus/audit/userAudit/' + userId,
    method: 'get'
  })
}

// 查询要审核的商品的相关信息
export function listShop(query) {
  return request({
    url: '/campus/audit/shop',
    method: 'get',
    params: query
  })
}

// 根据 comId 查询要审核的商品的相关信息
export function getAuditShop(comId) {
  return request({
    url: '/campus/audit/shop/' + comId,
    method: 'get'
  })
}

// 根据 comId 审核通过商品
export function passAuditShop(comId) {
  return request({
    url: '/campus/audit/shopPassAudit/' + comId,
    method: 'get'
  })
}

// 根据 comId 确定该商品违规
export function outAuditShop(comId) {
  return request({
    url: '/campus/audit/shopOutAudit/' + comId,
    method: 'get'
  })
}

// 查询要审核的悬赏榜的相关信息
export function listPrice(query) {
  return request({
    url: '/campus/audit/price',
    method: 'get',
    params: query
  })
}

// 根据 offerId 查询要审核的悬赏榜的相关信息
export function getAuditPrice(offerId) {
  return request({
    url: '/campus/audit/price/' + offerId,
    method: 'get'
  })
}

// 根据 offerId 审核通过该悬赏榜
export function passAuditPrice(offerId) {
  return request({
    url: '/campus/audit/pricePassAudit/' + offerId,
    method: 'get'
  })
}

// 根据 offerId 确定该悬赏榜违规
export function outAuditPrice(offerId) {
  return request({
    url: '/campus/audit/priceOutAudit/' + offerId,
    method: 'get'
  })
}
